<template>
  <div class="MiTag-box">
    <el-tag :type="computedTagType">
      <slot>

      </slot>
    </el-tag>
  </div>
</template>

<script>
export default {
  name: "MiTag",
  props: {
    i: {
      type: Number
    }
  },
  data() {
    return {
      map: ['success', 'info', 'warning', 'error']
    }
  },
  computed: {
    computedTagType() {
      let len = this.map.length
      return this.map[this.i % len]
    }
  },
  methods: {}
}
</script>

<style scoped>
.MiTag-box {

}
</style>